<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>02_变量与常量</title>
</head>
<body>
<script>
    //JS是一门弱类型的语言
    var a = 1;
    console.log(a);
    var b = 3.23;
    console.log(b);
    var c = true;
    console.log(c);
    c = "我是字符串";
    console.log(c);
    c = false;
    console.log(c)
    var c = "我又来了";
    console.log(c);

    let x = 1;
    console.log(x);
    // let x =5555; //无法重复声明
    // console.log(x);

    //使用关键字const来声明常量
    const y = 2;
    console.log(y);
    // const y = 3; //只读
</script>
</body>
</html>